package user;


import Function.*;

import java.util.Scanner;

public class AdiminalUser extends User{

    public AdiminalUser(String name){
        super(name);
        this.all=new All[]{new Find(),new Add(),new Delete(),new Show(),new Exit()};//只有实现其接口的才可以作为其元素
    }//接口不能创建对象

    @Override
    public int  meau() {
      System.out.println("欢迎"+this.name+"来到图书系统");
      System.out.println("********管理员*********");
          System.out.println("1.查找图书");
          System.out.println("2.新增图书");
          System.out.println("3.删除图书");
          System.out.println("4.显示图书");
          System.out.println("5.退出系统");
          System.out.println("=======================");
          System.out.println("请输入你的操作：");
          Scanner in = new Scanner(System.in);
          int a = in.nextInt();
          return a;

    }
}
